import service from '@/utils/request'

// @Tags HealthQuestion
// @Summary 创建健康问答-待回答问题表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.HealthQuestion true "创建健康问答-待回答问题表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /hq/createHealthQuestion [post]
export const createHealthQuestion = (data) => {
  return service({
    url: '/hq/createHealthQuestion',
    method: 'post',
    data
  })
}

// @Tags HealthQuestion
// @Summary 删除健康问答-待回答问题表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.HealthQuestion true "删除健康问答-待回答问题表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /hq/deleteHealthQuestion [delete]
export const deleteHealthQuestion = (data) => {
  return service({
    url: '/hq/deleteHealthQuestion',
    method: 'delete',
    data
  })
}

// @Tags HealthQuestion
// @Summary 批量删除健康问答-待回答问题表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除健康问答-待回答问题表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /hq/deleteHealthQuestion [delete]
export const deleteHealthQuestionByIds = (data) => {
  return service({
    url: '/hq/deleteHealthQuestionByIds',
    method: 'delete',
    data
  })
}

// @Tags HealthQuestion
// @Summary 更新健康问答-待回答问题表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.HealthQuestion true "更新健康问答-待回答问题表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /hq/updateHealthQuestion [put]
export const updateHealthQuestion = (data) => {
  return service({
    url: '/hq/updateHealthQuestion',
    method: 'put',
    data
  })
}

// @Tags HealthQuestion
// @Summary 用id查询健康问答-待回答问题表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.HealthQuestion true "用id查询健康问答-待回答问题表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /hq/findHealthQuestion [get]
export const findHealthQuestion = (params) => {
  return service({
    url: '/hq/findHealthQuestion',
    method: 'get',
    params
  })
}

// @Tags HealthQuestion
// @Summary 分页获取健康问答-待回答问题表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取健康问答-待回答问题表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /hq/getHealthQuestionList [get]
export const getHealthQuestionList = (params) => {
  return service({
    url: '/hq/getHealthQuestionList',
    method: 'get',
    params
  })
}
